package com.saurshaz.testmvc.tree;

import java.util.List;
import java.util.Map;

import test.Attributes;
import test.Data;

public class JsTreeNode {
	private Data data;
	private String state;
	private List<JsTreeNode> children;
	private Attributes attributes;

	public JsTreeNode(Map<String, String> dataMap, String state,
			List<JsTreeNode> childrenNodes, Map<String, String> attributesMap) {
		this.data = new Data(dataMap);
		this.attributes = new Attributes(attributesMap);
		this.children = childrenNodes;
		this.state = state;
	}

	@Override
	public String toString() {
		// TODO Auto-generated method stub
		return super.toString();
	}

	public Attributes getAttributes() {
		return attributes;
	}

	public void setAttributes(Attributes attributes) {
		this.attributes = attributes;
	}

	public Data getData() {
		return data;
	}

	public void setData(Data data) {
		this.data = data;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public List<JsTreeNode> getChildren() {
		return children;
	}

	public void setChildren(List<JsTreeNode> children) {
		this.children = children;
	}

}
